package com.quan.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quan.commons.core.biz.support.MyBaseServiceImpl;
import com.quan.commons.core.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.quan.admin.mapper.SysSettingsMapper;
import com.quan.admin.entity.SysSettings;
import com.quan.admin.service.SysSettingsService;


@Service
public class SysSettingsServiceImpl extends MyBaseServiceImpl<SysSettingsMapper, SysSettings> implements SysSettingsService {

    @Autowired
	private SysSettingsMapper mapper;

	@Override
    public IPage<SysSettings> selectMyPage(PageUtils pageUtils, SysSettings entity) {
        Page<SysSettings> page = new Page<SysSettings>(pageUtils.getPage(), pageUtils.getLimit());

        // 排序
        super.handleSort(page, pageUtils);

        return this.mapper.selectMyPage(page, entity);
    }

}